package server.world.action

import server.world._
import server.world.character._


abstract class Action extends Object{
  val skillname:String
  var ap:Float
  val char:GameCharacter
  def predicate():Boolean
  def exe():Unit
  
  def tick(){ap = ap-1}
  
  def checkpredicate() = if(!predicate()) TurnProcessor.removeAction(this)
  
  def sendToWorld() = TurnProcessor.addAction(this)
  
}

